<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>New Codington</title>
<link type="text/css" rel="stylesheet" href="css/mystyle.css">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2"></script>
    <script src="js/login.js"></script>
</head>
<body >

 
 <div id="container"> <!--para centrar cuadro-->
   <!-- Login Starts Here -->
   <header>
   <nav>
  <ul class="">
  <li id="logo" ><img src="./images/logo2.jpg"></li>
 <%   Object iD = session.getAttribute("iDVisitor");
int id= (Integer) iD; 
		    
if (id==1){%>

 <li id="ref1"><a href="neweventregistrationadd.jsp">Register event</a></li> 
<li id="ref1"><a href="createplace.jsp">Create new place</a></li> 
<li id="ref1"><a href="modifypassword.jsp">Update password</a></li>
<li id="ref1"><a href="update.jsp">Update information</a></li> 

   <% }else{%>
<li id="ref1"><a href="ViewMyEventServlet">My Events</a></li> 
<li id="ref1"><a href="modifypassword.jsp">Update password</a></li>
<li id="ref1"><a href="update.jsp">Update information</a></li>  


<%} %> 

</ul>
</nav>
</header>
<%String usu=(String)session.getAttribute("username"); %>
<% String pass=(String)session.getAttribute("password"); %>
<div id="loginContainer">
				  <% if (usu.isEmpty()){ %>
            
			<!-- <a href="#" id="loginButton"><span>OutLogin</span><em></em></a> -->
                <a href="#" id="loginButton"><span>Login</span><em></em></a> 
                <div style="clear:both"></div>
                <div id="loginBox">                
                    <form id="loginForm" class="LoginServlets" action="LoginServlets" method="post">
                        <fieldset id="body">
                            <fieldset>
                          
                                <label for="username">Username</label>
                                <input type="text" name="username" id="username" />
                            </fieldset>
                            <fieldset>
                                <label for="password">Password</label>
                                <input type="password" name="password" id="password" />
                            </fieldset>
                            <input type="submit" id="login" value="Sign in" />
                            <label for="checkbox"><input type="checkbox" id="checkbox" />Remember me</label>
                        </fieldset>
                         
                    </form>
                   
                </div>
                  
                 <%}
			else{%>
				<form class="UpdatePassServlet" action="LogoutServlet" method="GET" >
			<input id="loginButtonOut" type="submit" value="Logout" />
				<!-- <a href="LogoutServlet" id="loginButtonOut" ><span>Logout</span><em></em></a> -->
				<h3> Bienvenido <%=usu%></h3> 
				</form>
			<%} %>
                
                  
                 
          </div>
    </div>
	
		<div id="columna">
		
	<div class="Sub_title">
	
        <p>MENU</p>
   	</div>
	
	<div id="header2">
	<ul class="nav2">
		<ul>
			<li><a href="mainpage2.jsp">Home</a></li>
			<br>
			<li><a href="history.jsp">History</a></li>
			<br>
			<li><a href="">North City<br></a>
			<br>
			<ul>
			<div class="menunorth">
			<li><a href="EventByPlaceServletMuseum?type=Museum">Museum</a></li>
			<br>
			<li><a href="EventByPlaceServletTheater?type=Theater">Theater</a></li>
			<br>
			<li><a href="EventByPlaceServletStadium?type=Stadium">Stadium</a></li>
			<br>
			<li><a href="EventByPlaceServletBusiness?type=large Business">Large Business</a></li>
			</div>
			</ul>
			</li>
			<li><a href="">South City</a>
			<ul>
			<div class="menusouth">
			<li><a href="EventByPlaceServletZoo?type=Zoo">Zoo</a></li>
			<br>
			<li><a href="EventByPlaceServletPark?type=Park">Park</a></li>
			<br>
			<li><a href="EventByPlaceServletAttraction?type=Tourist Attraction">Turist Attraction</a></li>
			<br>
			<li><a href="EventByPlaceServletMarket?type=Traditional Market">Traditional Market</a></li>
			</div>
			</ul>
			</li> 
		</ul>
	</ul>
	</div>
	
	</div>
	
	
	<div class="titulo">
        	<p>History  New Codington</p>
   		</div>
   		<div class="cuadroblancohistory">
			
		<div class="Sub_title">
       	 <p></p>
   		</div>

    	<section class="div_borde"> 
    	<div id=history>
			<p> The Culture of Codington concerns the arts, music, museums, festivals and other entertainment in Codington, the capital city of the United Kingdom. </p>
			<p> Codington is also home to notable cultural attractions such as the British Museum, the Tate Galleries, the National Gallery.</br>
			</p></br>
			<p>Codington hosts several festivals, fairs and carnivals throughout the year with over 40 free festivals each year. The most famous is the Notting Hill Carnival, the world's second largest carnival. The carnival takes place over the August bank holiday weekend, 
			and attracts almost 1 million people. It has a distinctly Afro-Caribbean flavour, and highlights include a competition between Codington's steelpan bands and a 3 mile street parade with dancing and music.</p></br>
			<p>Codintgon is the home of many professional sport teams and has hosted various international
			 sporting events, including the Summer Olympics in 1908, 1948, and 2012. 
			 Football is very popular and Codington is home to Wembley Stadium as well as club stadiums such as the Allianz Stadium,
			  Stamford Bridge and White Hart Lane. Cricket grounds such as Lord's and The Oval are in London and rugby league and rugby union are popular team sports in the city. 
			  The Boat Race and The Wimbledon Championships, among the most famous contests in rowing and tennis, respectively, occur in Codington. The Olympic Stadium will intermittently host athletics events.</p>
		 </div>
		 </section>
		 </br></br>
	</div>
        

</body>
</html>